package com.qdxwx.data.mapper.notice;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.notice.Notice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 公告 数据层
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface NoticeMapper {

    Notice selectNoticeById(Long noticeId);

    List<Notice> selectList(@Param("e") Notice notice, @Param("page") PageRequest page);

    long selectCount(@Param("e") Notice notice);

    int insertNotice(Notice notice);

    int updateNotice(Notice notice);

    int deleteNoticeByIds(String[] noticeIds);

}